/************************************************************************
    > File Name: test.cpp
    > Author: liujing
    > Mail: jingliu.cs@gmail.com 
    > Created Time: 2014年10月20日 星期一 20时51分51秒
 ************************************************************************/
#include <stack>
#include <iostream>
#include <math.h>
#include "reg2nfa.h"
#include "transTB.h"
int main()
{
	
	cout<<"testing"<<endl;
	string s="(a*|b*)*";
	RegToNFA r2nfa=RegToNFA(s);
	r2nfa.createNFA();
	cout<<"****** NFA ******"<<endl;
	r2nfa.printGraphLink();
	Graph * graph=r2nfa.graph;
	TransTable transTable=TransTable(graph);
	transTable.buildTransitionTable();
	cout<<"****** DFA ******"<<endl;
	transTable.printTransTable();
	return 0;
}

